package com.neuedu.jdbc.dao;

import com.neuedu.jdbc.entity.UmsUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public class UmsUserDao {


    @Autowired
    JdbcTemplate jdbcTemplate;


    public List selectList(){


        String sql = "select * from ums_user ";
        return jdbcTemplate.queryForList(sql);
    }




}
